import getSystemInfo from 'utils/getSystemInfo'

const {navBarHeight = 0, statusBarHeight = 0} = getSystemInfo()

Page({
  data: {
    statusHeight: statusBarHeight,
    navBarHeight: navBarHeight,
  },
  created (options) {},
  onReady () {},
  // Event handler.
  viewTap () {
    this.setData({
      text: 'Set some data for updating view.'
    }, function() {
      // this is setData callback
    })
  },
  back() {
    wx.navigateBack()
  },
  customData: {
    hi: 'MINA'
  }
})